package com.yangwp.doutu.Utils;

import com.yangwp.doutu.enums.RespEnum;

import java.util.HashMap;
import java.util.Map;

public class MapUtil {

    public static Map<String, Object> getMap(RespEnum respEnum){
        Map<String, Object> map = new HashMap<>();
        map.put("code", respEnum.getCode());
        map.put("msg", respEnum.getMsg());
        return map;
    }

}
